const urlSvg = new URL(
	"",
	import.meta.url
);
const urlHtml = new URL(
	"data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E",
	import.meta.url
);
const urlPng = new URL(
	"%3D",
	import.meta.url
);
const urlGif = new URL(
	"",
	import.meta.url
);
const urlGif2 = new URL(
	"",
	import.meta.url
);

it("should extract DataURI's", () => {
	expect(/[0-9abcdef]+\.svg/.test(urlSvg.href)).toBe(true);
	expect(/[0-9abcdef]+\.[0-9abcdef]+\.html/.test(urlHtml.href)).toBe(true);
	expect(/[0-9abcdef]+\.png/.test(urlPng.href)).toBe(true);
	expect(/[0-9abcdef]+\.gif/.test(urlGif.href)).toBe(true);
	expect(/[0-9abcdef]+\.gif/.test(urlGif2.href)).toBe(true);
});
